package org.blade.personal.component;

/**
 * 常量类
 * 
 * @author ZGF
 *
 */
public class Const {

	/**
	 * 业务常量
	 * 
	 * @author ZGF
	 *
	 */
	public static final class Buesiness {
		public static final String PAGE_SIZE = "pageSize";
		public static final String PAGE_NUM = "pageNum";
		public static final String DATA = "data";
		public static final String TOTAL_COUNT = "totalCount";
		
		/**
		 * 更新成功
		 */
		public static final int UPDATE_SUCCESS = 1;
	}

	/**
	 * 1.用户，2.角色，3.部门，4.区域
	 */
	public static final class Authority {
		public static final int USER = 1;
		public static final int ROLE = 2;
		public static final int DEPARTMENT = 3;
		public static final int AREA = 4;

	}

	/**
	 * 系统量常
	 * 
	 * @author ZGF
	 *
	 */
	public static final class System {
		public static final String ID = "id";
		public static final String MODULE = "module";
		public static final String URL = "url";
		public static final String USER = "user";
		public static final String USER_ID = "userId";
		public static final String AUTHORITY_ID = "authorityId";
		public static final String REF_ID = "refId";
		public static final String REF_TYPE = "refType";
		public static final String USER_INFO = "userInfo";
		
	}
	
	
	
	public static final class Status{
		/**
		 * success
		 */
		public static final int SUCCESS=1;
		/**
		 * fail
		 */
		public static final int FAIL=0;
	}

}
